<div align="center">
  <DIV class=boxright>
    <DIV class=bltop2>
      <div align="left">
        <strong>
          &nbsp;&nbsp;&nbsp;当前位置：&nbsp;&nbsp;<%=link_to "后台管理", :controller=>"manage",:action=>"index"%>&nbsp;&nbsp;<img src="/images/zd_arrow.gif">&nbsp;&nbsp;<%=link_to "角色管理", :action=>"show_roles"%>         
        </strong>      
      </div>
    </DIV>
    <DIV class=c_box>
      <DIV class="rep_left">
        <TABLE class=tatop7px cellSpacing=0 cellPadding=4 width="100%" border=0>
          <TBODY>
            <TR>
              <TD class=rep_li_c  ALIGN="left" COLSPAN="10"><STRONG>角色权限分配如下</STRONG></TD>             
            </TR>
            <TR style="TEXT-DECORATION: none" onMouseOver="this.style.backgroundColor='#EFF8FF'" onmouseout="this.style.backgroundColor=''">
              <TD class=rep_li_td_bt ALIGN="left">角色名</TD>  
              <TD class=rep_li_td_bt ALIGN="left">浏览</TD>        
              <TD class=rep_li_td_bt ALIGN="left">搜索</TD>
              <TD class=rep_li_td_bt ALIGN="left">论坛</TD>  
              <TD class=rep_li_td_bt ALIGN="left">下载</TD>        
              <TD class=rep_li_td_bt ALIGN="left">上传</TD>
              <TD class=rep_li_td_bt ALIGN="left">删除</TD>  
              <TD class=rep_li_td_bt ALIGN="left">移动</TD>        
              <TD class=rep_li_td_bt ALIGN="left">编辑</TD>
              <TD class=rep_li_td_bt ALIGN="left">管理</TD>
            </TR>
            <TR style="TEXT-DECORATION: none" onMouseOver="this.style.backgroundColor='#EFF8FF'" onmouseout="this.style.backgroundColor=''">
              <TD class=rep_li_td_bt ALIGN="left">省公司角色</TD>  
              <TD class=rep_li_td_bt ALIGN="left">√</TD>        
              <TD class=rep_li_td_bt ALIGN="left">√</TD>
              <TD class=rep_li_td_bt ALIGN="left">√</TD>  
              <TD class=rep_li_td_bt ALIGN="left">√</TD>        
              <TD class=rep_li_td_bt ALIGN="left">√</TD>
              <TD class=rep_li_td_bt ALIGN="left">√</TD>  
              <TD class=rep_li_td_bt ALIGN="left">√</TD>        
              <TD class=rep_li_td_bt ALIGN="left">√</TD>
              <TD class=rep_li_td_bt ALIGN="left">√</TD>
            </TR>
            <TR style="TEXT-DECORATION: none" onMouseOver="this.style.backgroundColor='#EFF8FF'" onmouseout="this.style.backgroundColor=''">
               <TD class=rep_li_td_bt ALIGN="left">市级用户角色</TD>  
              <TD class=rep_li_td_bt ALIGN="left">√</TD>        
              <TD class=rep_li_td_bt ALIGN="left">√</TD>
              <TD class=rep_li_td_bt ALIGN="left">√</TD>  
              <TD class=rep_li_td_bt ALIGN="left">√</TD>        
              <TD class=rep_li_td_bt ALIGN="left">√</TD>
              <TD class=rep_li_td_bt ALIGN="left">&nbsp;</TD>  
              <TD class=rep_li_td_bt ALIGN="left">&nbsp;</TD>        
              <TD class=rep_li_td_bt ALIGN="left">&nbsp;</TD>
              <TD class=rep_li_td_bt ALIGN="left">&nbsp;</TD>
            </TR>
            <TR style="TEXT-DECORATION: none" onMouseOver="this.style.backgroundColor='#EFF8FF'" onmouseout="this.style.backgroundColor=''">
          <TD class=rep_li_td_bt ALIGN="left">县级角色 </TD>  
              <TD class=rep_li_td_bt ALIGN="left">√</TD>        
              <TD class=rep_li_td_bt ALIGN="left">√</TD>
              <TD class=rep_li_td_bt ALIGN="left">√</TD>  
              <TD class=rep_li_td_bt ALIGN="left">√</TD>        
              <TD class=rep_li_td_bt ALIGN="left">&nbsp;</TD>
              <TD class=rep_li_td_bt ALIGN="left">&nbsp;</TD>  
              <TD class=rep_li_td_bt ALIGN="left">&nbsp;</TD>        
              <TD class=rep_li_td_bt ALIGN="left">&nbsp;</TD>
              <TD class=rep_li_td_bt ALIGN="left">&nbsp;</TD>
            </TR>
          </TBODY>
        </TABLE>
        
        <%form_tag :action=>"update_role" do%>
          <TABLE class=tatop7px cellSpacing=0 cellPadding=4 width="100%" border=0>
            <TBODY>
              <TR>
                <TD class=rtdw width="4%">
                <INPUT id="chkAll" onclick="title_check('chkAll','chkID[]')"  type=checkbox value=checkbox></TD>
                <TD class=rep_li_c width="40%" ALIGN="left"><STRONG>角色名</STRONG></TD>  
                <TD class=rep_li_c width="60%" ALIGN="left"><STRONG>备注</STRONG></TD>              
              </TR>
              <%for role in @roles%>
                <TR id="tr_<%=role.id%>" style="TEXT-DECORATION: none" onMouseOver="this.style.backgroundColor='#EFF8FF'" onmouseout="this.style.backgroundColor=''">
                  <TD class=rtdw2>
                  <INPUT onclick="rows_check('chkAll','chkID[]')" type=checkbox value="<%=role.id%>" name="chkID[]"></TD>
                  <TD class=rep_li_td_bt ALIGN="left" >
                    &nbsp;<%=role.role_name%>
                  </TD>        
                  <TD class=rep_li_td_bt ALIGN="left">&nbsp;<%=role.memo%></TD>
                </TR>
              <%end%>
            </TBODY>
          </TABLE>
        
          <TABLE cellSpacing=0 cellPadding=4 width="100%" border=0>
            <TBODY>
              <TR vAlign=top>
              <TR vAlign=top ALIGN="left">
                <TD>
                  <INPUT onclick="return check_select_one('chkAll','chkID[]')"
                         name="button" class="bt1" id="edit"  type="submit" value="编辑">
                </TD>
              </TR>
            </TBODY>
          </TABLE>
        <%end%>
      </DIV>
    </DIV>
  </DIV>
</div>

